projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38040c9
)
textview: Don't forget to collect css letterspacing
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 26 Aug 2021 19:01:23 +0000
(15:01 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 26 Aug 2021 19:01:23 +0000
(15:01 -0400)
There are more properties missing, this is just
the start.
Fixes: #4207
gtk/gtktextview.c
patch
|
blob
|
history
diff --git
a/gtk/gtktextview.c
b/gtk/gtktextview.c
index 46944bf82e7370ed1872388c76d5dbeb7949306e..9ab2c37a37221edb7d60573b28a5ec930d622be1 100644
(file)
--- a/
gtk/gtktextview.c
+++ b/
gtk/gtktextview.c
@@
-7670,6
+7670,9
@@
gtk_text_view_set_attributes_from_style (GtkTextView *text_view,
if (gtk_css_number_value_get_dimension (style->font->line_height) == GTK_CSS_DIMENSION_LENGTH)
values->line_height_is_absolute = TRUE;
}
+
+ values->letter_spacing = _gtk_css_number_value_get (style->font->letter_spacing, 100) * PANGO_SCALE;
+
}
static void